<?php
declare (strict_types=1);

namespace app\common\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class Ad extends Base
{
    protected $autoWriteTimestamp = 'int';

    /**
     * position #
     *
     * @auth kouweihong
     * @date 2020/12/2
     * @return \think\model\relation\HasOne
     */
    public function position()
    {
        return $this->hasOne(AdPosition::class, 'id', 'position_id')->joinType('left');
    }
}
